#include <iostream>
#include <unistd.h>
#include "anal.h"

using namespace std;

extern "C" int	score_bt(uint32_t addr, AnalHost *host)
{
	cout << "score_bt totals ";
	int	in, out;
	int	connections = host->GetVolumes(in, out);
	 struct sockaddr_in ip;
	 ip.sin_addr.s_addr = addr;

	cout << inet_ntoa(ip.sin_addr) << " " ;
	FormatVolume("Total ", in + out, cout);
	FormatVolume("In ", in, cout);
	FormatVolume("Out ", out, cout);
	cout << endl;
//	cout << *host;
	return 0;
}
